﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int dfs(int n, int k)
{
    if (k == 0)
        return 1;
    else
        return n * dfs(n, k-1);
}
int main() 
{
    int n = 2;
    int k = 10;
    int ret = dfs(n, k);
    printf("%d的%d次方是:%d", n, k,ret);
    return 0;
}